package com.yumingjaing.stream;

import com.yumingjaing.functioninterface.UserQueryInterface;

/**
 * @description: 函数式接口
 * @author: John
 * @version: FunctionInterface01.java, v1.0 2024年11月11日 00:56
 */
public class FunctionInterface01Test {
    public static void main(String[] args) {
        UserQueryInterface userQueryInterface = String::hashCode;
        test1(userQueryInterface);
    }

    private static void test1(UserQueryInterface userQueryInterface) {
        Thread thread = new Thread(()-> System.out.println(userQueryInterface.queryUserAgeByName("2")));
        thread.start();
    }
}